package org.example.fronted.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.example.entity.Address;

import java.util.List;

@Mapper
public interface AddressMapper1 extends BaseMapper<Address> {

    int resetTakeDeliveryAddress(Integer uId);

    int changeTakeDeliveryAddress(Integer aId);

    int resetDefaultAddress(Integer uId);

    int changeDefaultAddress(Integer aId);

    List<Address> getAddressByUserId(Integer userId);
}
